package lbd;

import java.util.Comparator;

public class TermFreqComparator implements Comparator<TermFreq> {
	  
	public int compare(TermFreq tf1, TermFreq tf2) {
		
		if(tf1.getFreq() > tf2.getFreq())
			return -1;
		else if (tf1.getFreq() < tf2.getFreq())
			return 1;
		else
			return 0;
	    
	}
	
}